package handler;

public class WarningHandler extends Handler {
    @Override
    public void handleRequest(String request) {
        if (request.equals("warning")) {
            System.out.println("警告处理: 检查设备状态");
        } else if (successor != null) {
            successor.handleRequest(request);
        }
    }
}
